<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:util="http://java.sun.com/jsf/composite/util">
	<ui:composition template="/views/layouts/mainPublic.xhtml">
	<ui:define name="content">
		<h:form id="formPrincipal">
			<div class="grid_18">
				<p:messages id="messages" />
			</div>
			<util:label value="#{i18n.FaleConosco_Nome}" grid="12" />
			<util:label value="#{i18n.FaleConosco_Telefone}" grid="6"/>
			
			<util:div grid="12">
				<p:inputText value="#{faleConosco.nome}" styleClass="width_11" 
				required="true" requiredMessage="#{i18n.FaleConosco_Required_Nome}" />
			</util:div>
			<util:div grid="6">
				<p:inputText value="#{faleConosco.telefone}" styleClass="width_6" />
			</util:div>
			
			<util:label value="#{i18n.FaleConosco_Email}" grid="18" />
			<util:div grid="18">
				<p:inputText value="#{faleConosco.email}" styleClass="width_18" 
				required="true" requiredMessage="#{i18n.FaleConosco_Required_Email}">
					<f:validator validatorId="validateEmail" />
				</p:inputText>
			</util:div>
			
			<util:label value="#{i18n.FaleConosco_Mensagem}" grid="18" />
			<util:div grid="18">
				<p:inputTextarea value="#{faleConosco.mensagem}" styleClass="width_18"
				required="true" requiredMessage="#{i18n.FaleConosco_Required_Mensagem}"
				rows="6" autoResize="true"/>
			</util:div>
			
			<util:div grid="18">
				<p:commandButton action="#{faleConosco.enviar}" value="#{i18n.btn_Enviar}" 
					style="float:right" update="@form" onstart="spinner.show()" oncomplete="spinner.hide()"/>
			</util:div>
		</h:form>
	</ui:define>
	</ui:composition>
</f:view>